import Vue from 'vue'
import App from './App.vue'
import router from './router'
import ElementUI from 'element-ui'
import globalConfig from '../globalConfig'
import 'element-ui/lib/theme-chalk/index.css'
import './assets/gloable.css'
//引用axios
import axios from 'axios'
//引入store
import store from './store'
import echarts from 'echarts'  //引入echarts

Vue.prototype.$echarts = echarts  //挂载在全局echarts,装4.8.0版本的
Vue.prototype.$axios = axios 
Vue.prototype.$globalConfig = globalConfig

Vue.config.productionTip = false

Vue.use(ElementUI,{size:"small"});

new Vue({
  render: h => h(App),
  router,
  store,
  echarts,
  axios,
  beforeCreate() {
		Vue.prototype.$bus = this //安装全局事件总线
	},
}).$mount('#app')
